<template>
  <div class="oss-multiple-image">
    <a-upload
      list-type="picture-card"
      :file-list="images"
      accept="image/*"
    >
      <template v-if="images.length === 0">
        <a-icon type="plus" />
        <div class="ant-upload-text">
          上传
        </div>
      </template>
    </a-upload>
  </div>
</template>

<script>
  import cloneDeep from 'lodash.clonedeep'
  export default {
    name: 'OssMultipleImageBak',
    props: {
      fileList: {
        type: Array,
        default: () => {
          return []
        }
      }
    },
    data () {
      return {
        images: cloneDeep(this.fileList)
      }
    },
    methods: {
    },
    watch: {
      fileList: {
        deep: true,
        handler (val) {
          this.images = cloneDeep(val)
        }
      }
    }
  }
</script>

<style lang="less" scoped>

</style>
